<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>函数</title>
	<script type="text/javascript">
		var fun1 = new Function("document.write('第一个函数');");

		fun1();
		
		function fun2() {//创建一个函数
			console.log("这是第二个函数");
			alert("hh");
			document.write("32342342");
		}

		fun2();
	</script>
</head>
<body>
</body>
</html>